package smartcampus.scjava.mapper;

import org.apache.ibatis.annotations.Param;
import smartcampus.scjava.POJO.DO.Smartuser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author 北煜
* @description 针对表【smartuser】的数据库操作Mapper
* @createDate 2023-10-17 21:32:25
* @Entity smartcampus.scjava.POJO.DO.Smartuser
*/
public interface SmartuserMapper extends BaseMapper<Smartuser> {

    /**
     * @param username 用户名
     * @return 返回用户DO
     */
    Smartuser getUserByUsername(@Param("username") String username);

    /**
     * @param user 用户组
     * @return 返回改变表数
     */
    Long insertById(@Param("user") Smartuser user);
}




